<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 
            浮动是有方向的
            浮动的方向是按照顺序排列
            当子元素的宽度超出的时候，盒子会自动换行掉下去
        */

        .box {
            width: 1000px;
            height: 100px;
            background-color: rgb(45, 180, 70);
        }

        .a {
            width: 500px;
            height: 100px;
            background-color: #f00;
            float: left;
        }

        .b {
            width: 200px;
            height: 100px;
            background-color: #ff0;
            /* float: right; */
            float: right;
        }

        .c {
            width: 301px;
            height: 100px;
            background-color: #000;
            /* float: right; */
            float: right;
        }
    </style>
</head>

<body>

    <!-- *  +  > -->
    <div class="box">
        <div class="a"></div>
        <div class="b"></div>
        <div class="c"></div>

    </div>
</body>

</html>